package com.hotel.mapper;


import com.hotel.domain.Food;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FoodMapper {

    //查询所有订餐
    @Select("select * from food")
    public List<Food> findAllFood();

    //保存订餐订单
    @Insert("insert into food values(#{orderId},#{foodName},#{foodPrice},#{foodNum},#{orderName},#{orstartime},#{orendtime})")
   // @Options(useGeneratedKeys = true,keyColumn = "order_id",keyProperty = "orderId")
    public void saveFoodOrder(  Food food);

}